<?php
class Shop_ImageController extends Promotor_Controller_Action_Scaffold {
	public $skin = array(
		// forsuje domyslny template i style na admin
		'template' => 'admin',
		'style' => 'default',
		// layout
		'layout' => 'admin_shop',
		// rozszerzam konfiguracje
		'config' => array(
			'filename' => 'backend_config.ini'
		)
	);

	public $acl = array(
		'list' => 'list',
		'add' => 'create',
		'edit' => 'update',
		'delete' => 'delete'
	);

	/**
	 * @see Promotor_Controller_Action_Scaffold specialization
	 */
	protected $_modelClass = 'Shop_Model_Image';
	protected $_formAddClass = 'Shop_Form_Image_Add';
	protected $_formEditClass = 'Shop_Form_Image_Edit';
	protected $_formRemoveClass = 'Shop_Form_Image_Remove';
	// end of specialization
	
	/**
	 * @return void
	 */
	public function indexAction() {
		$this->_forward('list');
	}
}